home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / game / demo / GDS_MISC.lha / misc / random.readme < prev    next >
Encoding:
Text File  |  1994-02-14  |  1.3 KB  |  23 lines

  1. These programs, RANDOM, and RA show off the capabilities of the new
  2. random number generator.  The first program, RANDOM, plots random X & Y
  3. coordinates on the screen.  Default display mode is lores 320x200, but
  4. accepts input parameters of HIRES or SUPER for hires 640x400 and 800x600
  5. displays respectively.  The SUPER parameter needs the super72 monitor
  6. installed in your devs:monitors drawer.  You'll also need a multisync
  7. monitor to display super72 resolutions.  Most random number generators
  8. will fill the screen with a pattern, and merely continue to repeat that
  9. pattern over and over, so that the display is unchanging.  What's
  10. interesting about this new random number generator is that it will
  11. eventually hit every single pixel on even an 800x600 display!  That's
  12. pretty good randomness.
  13.  
  14. The 2nd program, RA, is the beginnings of a random number analysis program
  15. as suggested by Alan Bland.  It samples 1 million random numbers in the
  16. specified range and prints the number of times each number was hit.  A
  17. good random number generator should yield a fairly even spread across
  18. every number in the range.  Results look pretty good.  Also, these results
  19. will vary with every execution of the program, even in a very small range
  20. such as 4.  This means for applications such as random die roll
  21. simulations triggered off of user input, results should approach true
  22. random.
  23.